package com.mrzhang.glpt.oauth.common.properties;

import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 张霄峰
 * @email 29839415@qq.com
 * @date 2020/4/8 9:35
 */
@Data
@SpringBootConfiguration
@PropertySource(value = {"classpath:glpt-auth.properties"})
@ConfigurationProperties(prefix = "glpt.auth")
public class GlptAuthProperties {
    private GlptClientsProperties[] clients = {};
    private int accessTokenValiditySeconds = 60 * 60 * 24;
    private int refreshTokenValiditySeconds = 60 * 60 * 24 * 7;

    // 免认证路径
    private String anonUrl;
    //验证码配置类
    private GlptValidateCodeProperties code = new GlptValidateCodeProperties();
}

